package com.vhly.ddxdecompiler.dexreader.file.mixeditem;

import com.vhly.ddxdecompiler.dexreader.io.DexInputStream;

import java.io.DataOutputStream;
import java.io.IOException;

/**
 * Created by IntelliJ IDEA.
 * User: vhly
 * Date: 2009-10-15
 * Time: 10:49:16
 *
 * @author vhly[FR]
 */
public abstract class Item {
    /**
     * 读取数据
     *
     * @param din 输入流
     * @throws IOException 异常
     */
    public abstract void read(DexInputStream din) throws IOException;

    /**
     * 输出数据
     *
     * @param dout 输出流
     * @throws IOException 异常
     */
    public abstract void write(DataOutputStream dout) throws IOException;
}
